package com.brainstore.patterns.decorator;

/**
 * Created by IntelliJ IDEA.
 * User: Martinez
 * Date: 03.03.12
 * Time: 0:26
 */
public class ConcereteDecoratorB extends Decorator{
    private Component wrappedObject;

    //you can add new Component states
    private Object newState;

    public ConcereteDecoratorB(Component wrappedObject) {
        this.wrappedObject = wrappedObject;
    }

    @Override
    void methodA() {
        //implements methodA
   }

    @Override
    int methodB() {
        //implements methodB
        return 0 + wrappedObject.methodB();
    }
}
